package com.ruoyi.system.domain.aggregation;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 银行卡对象 card
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class Card extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 银行账户名称 */
    @Excel(name = "银行账户名称")
    private String name;

    /** 银行名称 */
    @Excel(name = "银行名称")
    private String bankName;

    /** 开户行 */
    @Excel(name = "开户行")
    private String bankBranch;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;

    /** 卡类型 */
    @Excel(name = "卡类型")
    private String cardType;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** 删除标志，0未删除，1删除 */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setBankName(String bankName) 
    {
        this.bankName = bankName;
    }

    public String getBankName() 
    {
        return bankName;
    }

    public void setBankBranch(String bankBranch) 
    {
        this.bankBranch = bankBranch;
    }

    public String getBankBranch() 
    {
        return bankBranch;
    }

    public void setCardNo(String cardNo) 
    {
        this.cardNo = cardNo;
    }

    public String getCardNo() 
    {
        return cardNo;
    }

    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("bankName", getBankName())
            .append("bankBranch", getBankBranch())
            .append("cardNo", getCardNo())
            .append("cardType", getCardType())
            .append("userId", getUserId())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}

